import { Schema, ValidationResult } from 'joi';
export class SimulationValidator {

  static of = (schema: Schema) => new SimulationValidator(schema);

  private constructor(private schema: Schema) { }

  public validate(value: unknown): ValidationResult {
    return this.schema.validate(value, { allowUnknown: true });
  }
}